//
//  TipCalculatorViewController.h
//  TipCalculator
//
//  Created by Fox School of Business MIS on 9/18/09.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MovieViewController.h"

@interface TipCalculatorViewController : UIViewController {
	IBOutlet UITextField* textCheckAmount;
	IBOutlet UITextField* textTipPercent;
	IBOutlet UILabel* labelTipAmount;
	IBOutlet UIButton* buttonCalculateTip;
	IBOutlet UIButton* buttonTipDialog;
	IBOutlet UIButton* buttonPlayVideo;

	/* Controls for the tip dialog box, as this view controller acts as a delegate for the tip dialog box */
	UITextField* textDialogTipPercent;
	
	/* view controller for movie view */
	MovieViewController* movieViewController;
}

/* are they really necessary? */
@property (retain, nonatomic) UITextField* textCheckAmount;
@property (retain, nonatomic) UITextField* textTipPercent;
@property (retain, nonatomic) UILabel* labelTipAmount;
@property (retain, nonatomic) UIButton* buttonCalculateTip;
@property (retain, nonatomic) UIButton* buttonTipDialog;
@property (retain, nonatomic) UIButton* buttonPlayVideo;
@property (retain, nonatomic) UITextField* textDialogTipPercent;

-(IBAction) buttonCalculateTipTouched;
-(IBAction) buttonTipDialogTouched;
-(IBAction) buttonPlayVideoTouched;
-(IBAction) textCheckAmountChanged;
- (void) alertView:(UIAlertView*)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex;
- (void) dialogOkButtonTouched: (id) sender;
- (void) dialogCancelButtonTouched: (id) sender;
- (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context;
- (void) willPresentAlertView:(UIAlertView*) view;
@end

